<?php

/* 
 * Display product picture in product list 
 */

if($defaultPictureModel->path){
	$picturePath = Yii::app()->baseUrl.$defaultPictureModel->path;
}else{
	$picturePath = Yii::app()->baseUrl.'empty.jpg';
}
echo CHtml::image($picturePath,
		$defaultPictureModel->name,// html alt string 
		array(
				'title' => $defaultPictureModel->name,
				'style' => 'margin: 10px;',
				'width' => 161
		)
);
?>
